<?php
	//$tribe_id
		$subject_db='phome_jat_tribe_subject';
		$p=$_REQUEST['p'];
		$is_good=$_REQUEST['gd'];
		$slt_abm_id=$_REQUEST['abm_id'];
		$whArr=array('tribe_id'=>$tribe_id);
		if($is_good){ 
			$whArr['is_good']='1';
		}
		$nums=DbTouch($subject_db,$whArr,"count(*) as total");
		$page=new page_obj($p,array("itemnum"=>10,"border"=>4,"row_count"=>$nums['total']));
		$limit_str=$page->get_limit_str();
		$subject_list=DbTouchAll($subject_db,$whArr,'*',' order by  is_top desc,time desc  '.$limit_str);
		$page_list=$page->build_html_link("p");
		

		//var_dump($AL);
		
?>
<style>
	.ipt_box{width:100%;}
	.big-box{height:120px;}
	.current_subject{color:#eee;background:#;}
</style>
<ol id="dh">
	<li><a href="<?=$public_r[newsurl]?>tribe/detail/?id=<?=$tribe_id?>">部落首页</a></li>
	<li><a href="<?=$public_r[newsurl]?>tribe/detail/?id=<?=$tribe_id?>&m=subject">部落讨论</a></li>
	<li><a href="<?=$public_r[newsurl]?>tribe/detail/?id=<?=$tribe_id?>&m=act">部落活动</a></li>
	<li><a href="<?=$public_r[newsurl]?>tribe/detail/?id=<?=$tribe_id?>&m=pho" class="change">部落相册</a></li>
</ol>
 <span class="clear"></span> 
<div >
		<h3>
			<span><a href="./?id=<?=$tribe_id?>&m=pho">查看全部</a></span>
			<span><a href="./?id=<?=$tribe_id?>&m=u">上传照片</a></span>
			<span><a href="./?id=<?=$tribe_id?>&m=abm">创建新相册</a></span>
			创建部落相册
		</h3>
		<div id="Topic">

	 <div class="a_content">
           <div class="l" style='width:90%;padding:10px;'>
				<div class='p-menu'>
					<div style='float:left;display:block;'>
						<div>
								<div class="tn-cue-tips tn-corner-all tn-message-box tn-widget-content tn-border-gray tn-bg-gray">
							
									<span class="tn-helper-left">
										<span class="tn-icon tn-icon-exclamation"></span>
									</span>
							  <div class="tn-helper-flowfix" style='padding:10px;border:1px solid #DDDDDD;background:#F5F5F5;'>				<strong>提示： </strong>批量上传单次最多可选择11个图片，每个图片最大限2000K以内；允许上传类型有：gif,jpg,jpeg,png,bmp。
								</div>	
								<div style='padding:10px;'>请选择相册：
								<select id='slt_album'>							
									<?php foreach($AL as $ak=>$al){?>
										<option value='<?=$al[id]?>' <?php if($slt_abm_id==$al['id']){echo 'selected="selected"';}?>><?=$al['title']?></option><?php }?>
								</select>
								</div>
							  <div class='list-btn'>
								<input type='button' id='file_upload' class='up-btn' value='浏览' />
								<input type='button' id='file_cancell' style='display:none;' class='up-btn' value='清除' />
							  </div>
						  <div style='text-align:center;padding-left:20px;'>
							 <input type='button' id='file_upload' style='background:#0381CE;padding:5px 10px;border:1px solid #eee;color:#000;cursor:pointer;' value='上传' onclick='setUpFileStart();'/>
						  </div>
                  </div>
                </div>
			</div>
		</div>
           </div>          
</div>


		</div>
	  <span class="clear"></span>
</div>
<!-- photo结束 -->